package com.raos.lottery.redis.service;

import com.raos.lottery.redis.dal.model.Lottery;
import com.baomidou.mybatisplus.extension.service.IService;
import com.raos.lottery.redis.service.dto.DoDrawDto;

/**
 * 抽奖活动业务层接口
 *
 * @author raos
 * @emil 991207823@qq.com
 * @date 2021/7/21 23:01
 */
public interface ILotteryService extends IService<Lottery> {

    /**
     * 执行抽奖
     * @param drawDto 去抽取奖DTO传输实例
     * @throws Exception
     */
    void doDraw(DoDrawDto drawDto) throws Exception;

}
